// const ProgressBar = require('progress')

// const bar = new ProgressBar(':bar', { total: 100 })
// const timer = setInterval(() => {
//   bar.tick()
//   if (bar.complete) {
//     clearInterval(timer)
//   }
// }, 100)
// const inquirer = require('inquirer')
const inquirer = require('inquirer')
const questions = [
  {
    type: 'input',
    name: 'name',
    message: "What's your name?"
  }
]

inquirer.prompt(questions).then((answers) => {
  console.log(`Hi ${answers.name}!`)
})
